// ------------------------------------------------------ Naming ------------------------------------------------------
Name Mil Mi-8 Hip China
ShortName Mi-8_China
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmi8_china
Model pla.mi8_china
Texture mi8_china
//Third Person Camera Distance
CameraDistance 18.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear False
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Heli
//Throttle
MaxThrottle 3.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.25
TurnRightSpeed 1.25
//Pitch modifiers
LookUpSpeed 1.25
LookDownSpeed 1.25
//Roll modifiers
RollLeftSpeed 1.25
RollRightSpeed 1.25
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Lift
//Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 26 -10 -58
WheelPosition 1 26 -10 58
WheelPosition 2 133 -17 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
//Propeller Positions
HeliPropeller 0 1 -50 -0,5 blades metalPropeller
HeliPropeller 1 135 -49 -2 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 5
ShootDelaySecondary 60
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 206 25 0 nose rpd
ShootPointPrimary 93 13 -57 leftWing rpg
ShootPointPrimary 93 13 -45 leftWing rpg
ShootPointPrimary 93 13 45 rightWing rpg
ShootPointPrimary 93 13 45 rightWing rpg
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and Passengers
//Driver and Passengers
Pilot 155 19 13
Passengers 12
Passenger 1 155 19 -13 core
Passenger 2 165 21 0 core
Passenger 3 127 21 -10 core -160 -60 -45 45 rpd PassengerGun3
Passenger 4 98 20 -20 core
Passenger 5 71 20 -20 core
Passenger 6 47 20 -20 core
Passenger 7 20 20 -20 core
Passenger 8 98 20 20 core
Passenger 9 71 20 20 core
Passenger 10 47 20 20 core
Passenger 11 20 20 20 core
Passenger 12 121 20 20 core
GunOrigin 3 -128 36 23
GunOrigin 4 27 35 -21
RotatedPassengerOffset 4 139 0 -14
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound heloB
PropSoundLength 30
//ShootSoundPrimary RocketFire1
//ShootSoundSecondary None
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 3 passengerBay
AddRecipeParts nose 1 advancedMetalCockpit
AddRecipeParts coreWheel 4 wheel
AddRecipeParts blades 6 helicopterBlade
AddRecipeParts tail 1 metalTail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 183 12 -19 10 27 38
SetupPart core 100 152 6 -27 31 47 54
SetupPart core 100 7 6 -27 145 47 54
SetupPart core 100 7 53 -27 133 27 54
SetupPart tail 100 -59 6 -27 66 62 54
SetupPart tail 100 -250 42 -12 191 24 24
SetupPart tail 100 -255 66 -4 28 24 10
SetupPart tail 100 -197 56 -38 17 3 76
SetupPart leftWing 100 17 8 -39 81 16 12
SetupPart rightWing 100 17 8 27 122 16 12
CollisionPoint 193 21 0 nose
CollisionPoint 161 21 0 core
CollisionPoint 66 21 0 core
CollisionPoint 66 69 0 core
CollisionPoint -33 21 0 tail
CollisionPoint -155 57 0 tail
CollisionPoint -242 81 0 tail
CollisionPoint 66 17 -34 leftWing
CollisionPoint 66 18 33 rightWing
BulletDetection 8
IsExplosionWhenDestroyed true
SpinWithoutTail true